import { MockMethod } from "vite-plugin-mock";

export default [
	{
		url: "/dev/api/test/fetchList",
		method: "get",
		response: ({ query }) => {
			console.log("mock.query", query);

			return {
				code: 200,
				data: [
					{
						id: 0,
						name: "mock-test0",
						age: 0,
					},
					{
						id: 1,
						name: "mock-test1",
						age: 1,
					},
				],
			};
		},
	},
] as MockMethod[];
